<?php
use common\service\StaticService;
use common\service\GlobalUrlService;
use backend\assets\AdminAsset;
StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/backend/user/index.js'),AdminAsset::class);

?>
<div class="layui-card">
    <div class="layui-card-header">用户列表</div>
    <div class="layui-card-body">
        <form  class="layui-form" method="get" id="#form1">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">用户名</label>
                    <div class="layui-input-inline">
                        <input type="tel" name="user_name" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn" lay-submit lay-filter="serch-form">搜索</button>
                </div>
            </div>
        </form>
        <div class="layui-form-item">
            <table class="layui-hide" id="test"  lay-filter="barDemo"></table>
        </div>
    </div>
</div>

<script type="text/html" id="header">
    <img src="{{d.avatarurl}}"/>
</script>
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="detail">查看</a>

</script>

<style>
    .layui-table-cell{height:auto;}
    .layui-table-cell img{max-width:50px;}
</style>